<?php
//分布式系统 试例demo
header("Content-type:text/html;charset=utf-8");
require_once 'redis/Redis.class.php';
if(!empty($_COOKIE['login_id']))
{
    $login_id = trim($_COOKIE['login_id']);
    $redis_model = new Redis_model();
    if($redis_model->GET($login_id))
    {
        $current_userId = $redis_model->GET($login_id);
        
        echo "当前登录用户 id值为 ".$current_userId;exit;
    }else{
     echo "还没过期";exit;   
    }    
}else
{
    //
    echo "denglu";exit;
}
?>